//
//  WubiZigenItem.m
//  Fozua
//
//  Created by sunmingming on 14-6-9.
//  Copyright (c) 2014年 EbolaPro. All rights reserved.
//

#import "WubiZigenItem.h"

@implementation WubiZigenItem

//重载选择 使用的LKDBHelper
+(LKDBHelper *)getUsingLKDBHelper
{
    static LKDBHelper* db;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
#if 1
        //        NSString* dbpath = [NSHomeDirectory() stringByAppendingPathComponent:@"asd/asd.db"];
        NSString* dbpath = [[NSBundle mainBundle] pathForResource:@"wubiziku" ofType:@"db"];
        db = [[LKDBHelper alloc]initWithDBPath:dbpath];
#else
        db = [[LKDBHelper alloc]init];
#endif
    });
    return db;
}

//主键
+(NSString *)getPrimaryKey
{
    return @"wbid";
}

//表名
+(NSString *)getTableName
{
    return @"wb_basic";
}

//表版本
+(int)getTableVersion
{
    return 1;
}

@end
